package org.example.reflection;

/**
 * @author: ZhuYouBin
 * @date: 2022/4/7 14:29
 * @description:
 */
public class Student extends Person {
    // 子类属性
    private String stuPriVal;
    String stuDefVal;
    protected String stuProVal;
    public String stuPubVal;

    // 子类构造方法
    private Student(String stuPriVal, String stuDefVal, String stuProVal){}
    Student(String stuDefVal){}
    protected Student(String stuProVal, String stuDefVal){}
    public Student(){}
    public Student(String name, Integer id){}

    // 子类方法
    private void subTest01(){
        System.out.println("Student类中的private私有方法");
    }
    void subTest02(){}
    protected void subTest03(){}
    public void subTest04(String name){
        System.out.println("调用了Student类中的subTest04()方法，方法参数是：" + name);
    }
}
